/* Defines for pads */
/** Define pad's names */

#define EN_MOTORL SIU.GPDO[16].B.PDO      //PB[0]
#define EN_MOTORD SIU.GPDO[17].B.PDO      //PB[1]
#define START SIU.GPDO[27].B.PDO          //PB[11]
#define CLK SIU.GPDO[29].B.PDO            //PB[13]
#define PUSH1 SIU.GPDI[64].B.PDI          //PE[0]
#define PUSH2 SIU.GPDI[65].B.PDI          //PE[1]
#define PUSH3 SIU.GPDI[66].B.PDI          //PE[2]
#define PUSH4 SIU.GPDI[67].B.PDI          //PE[3]
#define LED1 SIU.GPDO[68].B.PDO           //PE[4]
#define LED2 SIU.GPDO[69].B.PDO           //PE[5]
#define LED3 SIU.GPDO[70].B.PDO           //PE[6]
#define LED4 SIU.GPDO[71].B.PDO           //PE[7]
#define PWMSERVO EMIOS_0.CH[4].CBDR.R  
#define MOTORD EMIOS_0.CH[6].CBDR.R
#define MOTORI EMIOS_0.CH[7].CBDR.R
#define FLAG1 EMIOS_0.CH[23].CSR.B.FLAG
#define ANP0 ADC.CDR[0].B.CDATA
#define ANP1 ADC.CDR[1].B.CDATA
#define ANP2 ADC.CDR[2].B.CDATA
#define ANP3 ADC.CDR[3].B.CDATA
#define ANP4 ADC.CDR[4].B.CDATA
#define ANP5 ADC.CDR[5].B.CDATA
#define ANP6 ADC.CDR[6].B.CDATA
#define LIGHT1 EMIOS_0.CH[9].CBDR.R
#define LIGHT2 EMIOS_0.CH[11].CBDR.R
#define LIGHT5 EMIOS_0.CH[13].CBDR.R



/****************************************/
/** Definitions for the EMIOS_0 module **/
/****************************************/
#define GPOM     0b0000000          /****/
#define GPIM     0b0000001          /****/
#define SAIC     0b0000010          /****/
#define SAOC     0b0000011          /****/
#define IPWM     0b0000100          /****/
#define IPM      0b0000101          /****/
#define DAOC     0b0000110          /****/
#define MCB3     0b0010000          /****/
#define MCB2     0b0010010          /****/
#define MCB1     0b0010100          /****/
#define OPWMT    0b0100110          /****/
#define MCB      0b1010000          /****/
#define MCBUD    0b1010100          /****/
#define OPWFMB   0b1011000          /****/
#define CAOPWMT  0b1011100          /****/
#define CAOPWML  0b1011101          /****/
#define OPWMB    0b1100000          /****/
                                    /****/
#define A_bus    0b00               /****/
#define int_bus  0b11               /****/
#define N_bus    0b01               /****/
                                    /****/
/****************************************/                                  
